xend: Fix memory leaks in libxc python bindings
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Sep 2009 07:44:57 +0000 (08:44 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Sep 2009 07:44:57 +0000 (08:44 +0100)
commit14162d298b6f8edb01a8c82e0c18110ed686ead7
treee5d31e3a8424e6d644630e40239e28553db6464e
parent43a134db615db6754d70f72bb1beca7b1e0b30a4
xend: Fix memory leaks in libxc python bindings

Reference counters are not correctly decreased for python object in
several places in python bindings for libxc. Most of them are around
PyList_Append(), which unlike PyList_SetItem() does increment
reference counter of the object being added to a list.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tools/python/xen/lowlevel/xc/xc.c